<script setup lang="ts">
import ItemWrap from "@/components/item-wrap";
import LeftTop from "./left-top.vue";
import LeftCenter from "./left-center.vue";
import LeftBottom from "./left-bottom.vue";
import CenterMap from "./center-map.vue";
import CenterBottom from "./center-bottom.vue";
import RightTop from "./right-top.vue";
import RightCenter from "./right-center.vue";
import RightBottom from "./right-bottom.vue";

import CenterTop from "./center_top.vue";
import CenterSearch from "./center-search.vue";
import LeftTop1 from "./left_top_1.vue";
import LeftCenter1 from "./left-center-1.vue";
</script>

<template>
  <div class="index-box">
    <div class="contetn_left">
      <!-- <div class="pagetab">
        <div class="item">实时监测</div>
        <div class="item">统计分析</div>
      </div> -->
      <ItemWrap class="contetn_left-top contetn_lr-item" title="法律援助覆盖情况">
        <LeftTop1 />

      </ItemWrap>
      <ItemWrap class="contetn_left-center contetn_lr-item" title="法律援助机构类型统计">
        <LeftCenter1 />
      </ItemWrap>
      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="法律援助文化新闻咨询" style="padding: 0 10px 16px 10px">
        <LeftBottom />
      </ItemWrap>
    </div>
    <div class="contetn_center">
      <CenterSearch class="contetn_center_top" />
      <CenterTop class="contetn_center_center" title="顶部数据" />
      <CenterMap class="contetn_center_map" title="设备分布图" />
      <!-- <ItemWrap class="contetn_center-bottom" title="安装计划">
        <CenterBottom />
      </ItemWrap> -->
    </div>
    <div class="contetn_right">
      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="咨询人员画像类别">
        <RightTop />
      </ItemWrap>
      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="近3年法援咨询趋势分析" style="padding: 0 10px 16px 10px">
        <RightCenter />
      </ItemWrap>
      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="司法解释小知识 ">
        <RightBottom />
      </ItemWrap>
    </div>
  </div>
</template>

<style scoped lang="scss">
.index-box {
  width: 100%;
  display: flex;
  min-height: calc(100% - 64px);
  justify-content: space-between;
}
//左边 右边 结构一样
.contetn_left,
.contetn_right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  width: 540px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.contetn_center {
  // flex: 1;
  margin: 0 30px;
  display: flex;
  flex-direction: column;
  // justify-content: space-around;
  
  .contetn_center_top{
    margin-top: 40px;
    height: 55px;
  }
  .contetn_center_center {
    margin-top: 70px;
    height: 50px;
  }
  .contetn_center_map {
    margin-top: 190px;
    height: 300px;
  }
}

.contetn_lr-item {
  height: 310px;
}
</style>
